@isTest
private class UpsertUnTaskRESTTest {
    static testMethod void testMethod1() {
        Account acc = TestUtils.createAccount();
        acc.RecordTypeId = Utils.getRecordTypeIdByDevNameAndObjName('Dealer', 'Account');
        insert acc; 

        List<UpsertUnTaskREST.UnTaskBean> utList = new List<UpsertUnTaskREST.UnTaskBean>();
        UpsertUnTaskREST.UnTaskBean ut = new UpsertUnTaskREST.UnTaskBean();
        ut.productLine = '免疫';
        ut.task = 10;
        ut.minus = 4;
        ut.rito = 20;
        ut.company = 'MKSY';
        ut.year = '2020年';

        ut.quater = '一季度';
        ut.accId = acc.Id ;
        ut.isMore = true;
        ut.minusTotal = 4;
        ut.taskTotal = 10;
        ut.ritoTotal = 20;
        ut.ncpk = 'xx';
        
        utList.add(ut);

        UpsertUnTaskREST.doPost(utList);


    }
}